package com.pactera.elasticsearch.bean;

import com.pactera.elasticsearch.commons.BaseObject;

import java.util.List;

/**
 * elasticsearch查询
 *
 * @author: liqingdian
 */
public class Search extends BaseObject {
    private static final long serialVersionUID = -670309947379428975L;
    /**
     * 当前页
     */
    private Long current;
    /**
     * 每页的数量
     */
    private Long size;
    /**
     * 索引
     */
    private String index;
    /**
     * 查询条件：遵循DSL查询语法
     */
    private Query query;
    /**
     * 排序
     */
    private List<Order> orders;
    /**
     * 指定查询字段
     */
    private String[] includes;

    public Long getCurrent() {
        return current;
    }

    public void setCurrent(Long current) {
        this.current = current;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public Query getQuery() {
        return query;
    }

    public void setQuery(Query query) {
        this.query = query;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    public String[] getIncludes() {
        return includes;
    }

    public void setIncludes(String[] includes) {
        this.includes = includes;
    }
}
